﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using Ext.Net;
public partial class UserList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!X.IsAjaxRequest)
        {
            Store1DataBind();
        }
    }
    protected void Store1DataBind()
    {
        using (var m = new ACEntities())
        {
            var q = from c in m.Users
                    orderby c.ID descending
                    select c;
            Store1.DataSource = q;
            Store1.DataBind();
        }
    }
    protected void RecorderOperates(object sender, DirectEventArgs e)
    {
        
    }
}